package cn.javass.dp.chianofresponsibility.mydemo3;

public class ClassAdviser extends LeaderHandle {


    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays <= 2) {
            System.out.println("审批通过");
        } else {
            successor.handleRequest(leaveDays);
        }
    }
}
